package com.question.pojo.dto;

import lombok.Data;

import javax.validation.constraints.*;

@Data
public class UserPageDTO {
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码最小为1")
    private Integer pageNum = 1;

    @NotNull(message = "每页数量不能为空")
    @Min(value = 1, message = "每页数量至少为1")
    @Max(value = 100, message = "每页数量最大为100")
    private Integer pageSize = 10;

    private String keyword;       // 搜索关键词
    private Boolean isAdmin;      // 管理员过滤
    private String professional;  // 专业领域过滤
}